<%= form_for(@penjualan_sub) do |f| %>
  <% if @penjualan_sub.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@penjualan_sub.errors.count, "error") %> prohibited this penjualan_sub from being saved:</h2>

      <ul>
      <% @penjualan_sub.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field">
    <%= f.label :penjualanid %><br />
    <%= f.number_field :penjualanid %>
  </div>
  <div class="field">
    <%= f.label :qty %><br />
    <%= f.number_field :qty %>
  </div>
  <div class="field">
    <%= f.label :hargapokok %><br />
    <%= f.number_field :hargapokok %>
  </div>
  <div class="field">
    <%= f.label :hargajual %><br />
    <%= f.number_field :hargajual %>
  </div>
  <div class="field">
    <%= f.label :disc %><br />
    <%= f.text_field :disc %>
  </div>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>
